package citylife.geotools.demo.tianditu.mkt;
import org.geotools.tile.TileFactory;
import org.geotools.tile.impl.WebMercatorTileService;

/**
 * The tile service for the Tianditu family.
 *
 * @author Tobias Sauerwein
 * @author Ugo Taddei
 * @since 12
 */
public class TiandituService extends WebMercatorTileService {

    private static final TileFactory tileFactory = new TiandituTileFactory();

    private static double[] scaleList = {
        2.958293554545656E8,
        1.479146777272828E8,
        7.39573388636414E7,
        3.69786694318207E7,
        1.848933471591035E7,
        9244667.357955175,
        4622333.678977588,
        2311166.839488794,
        1155583.419744397,
        577791.7098721985,
        288895.85493609926,
        144447.92746804963,
        72223.96373402482,
        36111.98186701241,
        18055.990933506204,
        9027.995466753102,
        4513.997733376551,
        2256.998866688275
    };

    public TiandituService(String name, String baseUrl) {
        super(name, baseUrl);
    }

    @Override
    public double[] getScaleList() {
        return scaleList;
    }

    @Override
    public TileFactory getTileFactory() {
        return tileFactory;
    }
}